import http from '@/utils/http'

const BASE_URL = '/contects/gettree'

/** @desc 查询会议列表 */
export function getOrganizationalStructure(query: any) {
  return http.get(`${BASE_URL}`, query)
}

/** @desc 同步组织架构 */
export function syncOrganizationalStructure() {
  return http.post('/contects/settree')
}

/** @desc 模糊搜索组织架构 */
export function searchOrganizationalStructure(keyword: string) {
  return http.get('/contects/apptree/searchAll', { keyword })
}
